package com.ning.ems.dao;

import com.ning.ems.entity.User;
//import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/3/6 11:27
 */
@Repository
public interface UserDao {

    List<User> list(Integer type, Integer offset, Integer num);

    //    @Select("select * from user where id = #{id}")
    User get(Integer id, String mobileNumber);

    int add(User user);

    int delete(Integer id);

    int updateName(Integer id, String name);

    int updatePassword(Integer id, String password);

    int updateMobileNumber(Integer id, String mobileNumber);

    int updateType(Integer id, Integer type);

}
